package com.lovo.bean;

import java.time.LocalDate;

/**
 * 学生类
 */
public class Student {
    private int id;
    /**
     * 姓名
     */
    private String name;
    /**
     * 性别
     */
    private String gender;
    /**
     * 电话
     */
    private String phone;

    /**
     * 班级对象
     */
    private Classz classz;
    /**
     * 房间对象
     */
    private Room room;
    private LocalDate inTime;
    private String headImg;

    public Student() {
    }

    public Student(int id, String name, String gender, String phone, Classz classz, Room room) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.phone = phone;
        this.classz = classz;
        this.room = room;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", phone='" + phone + '\'' +
                ", classz=" + classz +
                ", room=" + room +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Classz getClassz() {
        return classz;
    }

    public void setClassz(Classz classz) {
        this.classz = classz;
    }

    public Room getRoom() {
        return room;
    }

    public void setRoom(Room room) {
        this.room = room;
    }

    public LocalDate getInTime() {
        return inTime;
    }

    public void setInTime(LocalDate inTime) {
        this.inTime = inTime;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }
}
